﻿
using Ops.Mpc.ExampleApplication.ExampleService;
using System.Collections.ObjectModel;
using Ops.Mpc.Models;
namespace Ops.Mpc.ExampleApplication.DataTemplateBindings.Models
{
    public class DataTemplateModel : Model<DataTemplateModel>
    {
        #region Fields & Properties
        private ObservableCollection<Person> _persons = new ObservableCollection<Person>();
        private Person _selectedPerson = null;

        public ObservableCollection<Person> Persons
        {
            get
            {
                return _persons;
            }
        }

        public Person SelectedPerson
        {
            get
            {
                return this._selectedPerson;
            }

            set
            {
                this._selectedPerson = value;
                this.RaisePropertyChanged(model => model.SelectedPerson);
            }
        }
        #endregion

    }
}
